package com.xa.xamall.framework.model;

import java.io.Serializable;

/**
 * 主键、名称和值实体类
 */
public class IdNameValue implements Serializable {

    private static final long serialVersionUID = 7843749747900517466L;
    private int id = 0;
    private String name;
    private Object value;
    private boolean selected;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public boolean getSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    public IdNameValue(int id, String name, Object value) {
        this.id = id;
        this.name = name;
        this.value = value;
    }

    public IdNameValue(int id, String name, Object value, boolean selected) {
        this.id = id;
        this.name = name;
        this.value = value;
        this.selected = selected;
    }
}
